<template>
	<view class="mine pore">
		<image class="bg-img poab" src="/static/images/mine/bg.png" mode=""></image>
		<view class="poab content">
			<view class="user-box flex-a-center flex">
				<image class="user" src="/static/images/mine/boy.png" mode=""></image>
				<view class="user-txt">
					<view class="name">
						Hello,{{name}}
					</view>
					<view class="phone">
						{{getPhone(phone)}}
					</view>
				</view>
			</view>
			<view class="group-img flex-a-center flex-j-between">

				<image class="img" src="../../static/images/mine/group.png" mode=""></image>
				<view class="group-txt-box">
					<view class="group-txt">
						我的集团
					</view>
					<view class="flex-j-between">
						<text class="org-txt">{{org}}</text>
						<text class="iconfont">&#xe63c;</text>
					</view>
				</view>


			</view>
			<view class="us-box flex-a-center flex-j-between">
				<text>关于我们</text>
				<text class="iconfont">&#xe63c;</text>
			</view>
		</view>
	</view>

	<bottomTabBar :tabIndex="1"></bottomTabBar>
</template>

<script setup>
	import bottomTabBar from '@/components/bottomTabBar/index.vue'
	import {
		ref
	} from 'vue'


	let name = ref('王安宇')
	let phone = ref('12345678901')
	let org = ref('南京未来科技有限公司')


	function getPhone(tellphone) {
		/* 方法一： */
		return tellphone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2");
	}
</script>

<style lang="scss" scoped>
	.mine {
		width: 100%;
		background: #F6F8FA;
		height: 100%;


		.bg-img {
			top: 0;
			left: 0;
			width: 100%;
		}

		.content {
			z-index: 1;
			padding: 0 24rpx;
			top: 0;
			left: 0;
			box-sizing: border-box;
			width: 100%;

			.user-box {
				z-index: 2;
				height: 180rpx;

				.user {
					width: 116rpx;
					height: 116rpx;
					margin-right: 36rpx;
				}

				.user-txt {
					font-size: 32rpx;
					color: #1B1B3D;

					.name {
						font-weight: 500;
						margin-bottom: 24rpx;
					}

					.phone {
						font-weight: 400;

					}
				}
			}

			.group-img {
				width: 100%;
				box-sizing: border-box;
				background: #FFFFFF;
				border-radius: 16rpx;
				height: 156rpx;
				padding: 0 24rpx;

				.group-txt-box {
					flex: 1;
					font-size: 28rpx;
					color: #1B1B3D;

					.group-txt {
						font-weight: 500;
						margin-bottom: 10rpx;
					}

					.org-txt {
						font-weight: 400;

					}
				}

				.img {
					width: 92rpx;
					height: 92rpx;
				}




			}

			.us-box {
				margin-top: 30rpx;
				width: 100%;
				box-sizing: border-box;
				background: #FFFFFF;
				border-radius: 16rpx;
				font-weight: 400;
				font-size: 28rpx;
				color: #1B1B3D;
				height: 104rpx;
				padding: 0 24rpx;
			}
		}
	}
</style>